import Vue from 'vue'
import Vuex from 'vuex'
import menuStore from './modules/menuStore'
import summaryStore from './modules/summaryStore'
import pageOpenedListStore from './modules/pageOpenedListStore'
import userStore from './modules/userStore'
import mangeConfigStore from './modules/mangeConfigStore'
import phoneNum from './modules/phoneNum'
import studentStore from './modules/studentStore'
import untreatedTaskNum from './modules/untreatedTaskNum'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

const store = new Vuex.Store({
    modules: {
        menuStore,
        summaryStore,
        pageOpenedListStore,
        userStore,
        mangeConfigStore,
        phoneNum,
        studentStore,
        untreatedTaskNum
    },
    strict: debug
})

export default store